//
//  TableViewCell1.m
//  BuffetNews
//
//  Created by 李荃荃 on 14-10-27.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "TableViewCell1.h"

@implementation TableViewCell1

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.iamge = [[UIImageView alloc] init];
        [self.contentView addSubview:self.iamge];
        [_iamge release];
        self.label1 = [[UILabel alloc] init];
        [self.contentView addSubview:self.label1];
        [_label1 release];
        
        
    }
    return self;
}
- (void)dealloc
{
    [_iamge release];
    [_label1 release];
    [super dealloc];
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    CGFloat width  = self.contentView.frame.size.width;
    CGFloat height = self.contentView.frame.size.height;
    self.iamge.frame = CGRectMake(10, 10, width / 5 - 10, height - 20);
    self.label1.frame = CGRectMake(width / 5 + 10, 0, width / 5 * 4, height);  
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
